Feature: 专业咨询的生命周期
  作为一个律师用户
  我可以处理用户提出的付费咨询
  这样我可以得到收入
  
Background:
Given http "accept" header is "application/json"
  And I make a "post" request to "login" with:
  | username    | password   |
  | 13702325512 | 123456   |
  And the response is in "json" format
  And http "authorization" header exists

Scenario: 律师用户可以接受指定给他的咨询
And there is a "pay_text" request with status "new"
When I "accept" this request with route "center.question.to_accept"
Then the response status code should be 200
And the status of the request is "replied"

Scenario: 律师用户可以拒绝指定给他的咨询
And there is a "pay_text" request with status "new"
When I "refuse" this request with route "center.question.to_refuse"
Then the response status code should be 200
And the status of the request is "cancelled"